<?php

namespace App\model;

use App\Project;
use Illuminate\Database\Eloquent\Model;

/**
 * App\model\RobotConfig
 *
 * @property int $id
 * @property string|null $name
 * @property string|null $key
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int|null $project_id
 * @property int|null $is_display 是否启用
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereIsDisplay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereKey($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereProjectId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string|null $send_time 每天发送时间
 * @property-read \App\Project|null $project
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\RobotConfig whereSendTime($value)
 */
class RobotConfig extends Model
{
    protected  $table='robot_config';
    public function project()
    {
        return $this->hasOne(Project::class,'project_id','project_id');
    }
    static public $displayMap=[
        0=>'启用',
        1=>'禁用'
    ];

}
